'use strict';

class Foo {
    constructor(name) {
        this.name = name
    }

    echo() {
        return this.name;
    }
    static sayHi() {
        return 'hi';
    }
}

Foo.prototype.sayBye = function() {
    return 'bye';
}

var xxx = new Foo("abc");

console.log(xxx.echo());
console.log(Foo.sayHi());
// console.log(xxx.sayHi()); // TypeError
console.log(xxx.sayBye());